<?php #20070416 http://www.framework.altervista.org/FrameWork/applications/_admin/system/09_php5_info/application.inc
define('APPIFRAME','1.00');
/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
 //phpinfo5

$height=400;

if (!file_exists("datas/applications/".apptitle($appname)))
    mkdir("datas/applications/".apptitle($appname),0755);

if (!file_exists("datas/applications/".apptitle($appname)."/phpinfo.php")){
    $fp=fopen("datas/applications/".apptitle($appname)."/phpinfo.php", "w");
    fwrite($fp,"<? phpinfo(); ?>");
    fclose($fp);
}

$iframe_path= "datas/applications/".apptitle($appname)."/phpinfo.php";
//$iframe_path= "php5/phpinfo.php";
?>


<?php if (admin_isadmin()){?>

<?php structure_openBlock("table appl","php5 info",""); ?>

    <p>
	<iframe frameborder="0" id="_iframe" src="<?=$iframe_path;?>" width="98%" scrolling="auto" height="<?=$height;?>">

	</iframe>


    </p>
<?php structure_closeBlock(); ?>
<?php  } ?>
